using System.Collections.Generic;

namespace ThridGroup.ERP.DTO
{
    /// <summary>
    /// 权限树DTO
    /// </summary>
    public class PermissionTreeDto
    {
        /// <summary>
        /// 权限ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 权限名称
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 是否选中
        /// </summary>
        public bool Checked { get; set; }

        /// <summary>
        /// 子权限
        /// </summary>
        public List<PermissionTreeDto> Children { get; set; }
    }

    /// <summary>
    /// 权限详细信息DTO（用于表单回填）
    /// </summary>
    public class PermissionDetailDto
    {
        /// <summary>
        /// 权限ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 权限名称
        /// </summary>
        public string PermissionName { get; set; }

        /// <summary>
        /// 父级权限ID
        /// </summary>
        public int FatherPermissionId { get; set; }

        /// <summary>
        /// 权限路径
        /// </summary>
        public string PermissionPath { get; set; }

        /// <summary>
        /// 排序ID
        /// </summary>
        public int OrderId { get; set; }

        /// <summary>
        /// 权限图标
        /// </summary>
        public string PermissionImg { get; set; }

        /// <summary>
        /// 权限状态
        /// </summary>
        public bool PermissionState { get; set; }

        /// <summary>
        /// 父级权限名称（用于显示）
        /// </summary>
        public string FatherPermissionName { get; set; }
    }
} 